package com.hrhr74.penguinstream.utils;

import com.hrhr74.penguinstream.constant.UserConstant;

public class UserUtils {

    public static boolean isValidRole(String role) {
        if(role == null || role.isEmpty()){
            return false;
        }
        return role.equals(UserConstant.EMPLOYEE) || role.equals(UserConstant.ADMIN) || role.equals(UserConstant.MERCHANT) ||
                role.equals(UserConstant.CUSTOMER);
    }
}
